import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const SYSTEM: AppRouteRecordRaw = {
    path: '/systemConfig',
    name: 'systemConfig',
    component: DEFAULT_LAYOUT,
    meta: {
        locale: '系统配置',
        requiresAuth: true,
        icon: 'icon-list',
        order: 2,
    },
    children: [
        {
            path: '/systemConfig/web', // 网站配置
            name: 'systemConfigWeb',
            component: () => import('@/views/system-config/web/index.vue'),
            meta: {
                locale: '网站设置',
            },
        },
        {
            path: '/systemConfig/config', // 配置管理
            name: 'systemConfigConfig',
            component: () => import('@/views/system-config/config/index.vue'),
            meta: {
                locale: '配置管理',
            },
        },
        {
            path: '/systemConfig/generator', // 代码生成
            name: 'systemConfigGenerator',
            component: () => import('@/views/system-config/generator/index.vue'),
            meta: {
                locale: '代码生成',
            },
        },
    ],
};

export default SYSTEM;
